package com.onlineproject.dao;

import java.util.List;

import com.onlineproject.action.PageModel;
import com.onlineproject.model.Project;
import com.onlineproject.model.ProjectAndProTime;

public interface ProjectDaoInterface {

	public boolean save(Project transientInstance);

	public boolean update(Project transientInstance);

	public String againProject(int pid);
	public List searchOverProject();
	public String overProject(int pid);

	public void delete(Project persistentInstance);

	public ProjectAndProTime findById(java.lang.Integer id);

	public List findByTeacherStatus(String tchid, String status);

	public List findByExample(Project instance);

	public List findAll();

	public PageModel findAllProject(int offset, int pagesize);


	public Project findProjectById(int id);

	public List searchNewProject();

	public List searchHotProject();

	public Project merge(Project detachedInstance);

	public void attachDirty(Project instance);

	public void attachClean(Project instance);

}
